<?php /* Smarty version Smarty-3.1.8, created on 2012-04-17 21:07:38
         compiled from "C:\xampp\htdocs\Projects\Project_step\administrator\themes\release\users\editRole.tpl" */ ?>
<?php /*%%SmartyHeaderCode:156084f8d884667ed84-59010138%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7c4d27fa1b9884328e37ef50e70aa72261512c0a' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Projects\\Project_step\\administrator\\themes\\release\\users\\editRole.tpl',
      1 => 1334689655,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '156084f8d884667ed84-59010138',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f8d8846702852_44809811',
  'variables' => 
  array (
    'user' => 0,
    'roles' => 0,
    'role' => 0,
    'rolesAll' => 0,
    'path' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f8d8846702852_44809811')) {function content_4f8d8846702852_44809811($_smarty_tpl) {?><div>
	<span id="user_id" title="<?php echo $_smarty_tpl->tpl_vars['user']->value->id;?>
">Назначенные роли пользователя <?php echo $_smarty_tpl->tpl_vars['user']->value->display_name;?>
</span>
    <br />
    <?php  $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['role']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value){
$_smarty_tpl->tpl_vars['role']->_loop = true;
?>
    	<span><?php echo $_smarty_tpl->tpl_vars['role']->value->itemname;?>
</span> <a href="#" title="<?php echo $_smarty_tpl->tpl_vars['role']->value->itemname;?>
" onclick="DelRoleUser(this)">Удалить</a>
    	<br />
    <?php } ?>
    <br />
    <br />
    <span>Добавить роль пользователю</span>
    <br />
    <br />
    <select name="sel_add_rol" id="sel_add_rol" >
    	<option value="null">Укажите роль</option>	
        <?php  $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['role']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rolesAll']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value){
$_smarty_tpl->tpl_vars['role']->_loop = true;
?>
    	<option value="<?php echo $_smarty_tpl->tpl_vars['role']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['role']->value;?>
</option>	
    	<?php } ?>
    </select>
    <br />
    <br />
    <a href="#" title="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
" id="editRolePath" onclick="AddRoleUser()">Добавить</a>
</div><?php }} ?>